package cst.a806yf.zyfypt_806yf.Bean;

/**
 * Created by Neusoft on 2016/12/21.
 */

public class ArticleBean extends AmicoolBean {
    private String description;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ArticleBean that = (ArticleBean) o;

        if (ressrcid != that.ressrcid) return false;
        if (description != null ? !description.equals(that.description) : that.description != null)
            return false;
        if (ressrcname != null ? !ressrcname.equals(that.ressrcname) : that.ressrcname != null)
            return false;
        if (attach != null ? !attach.equals(that.attach) : that.attach != null) return false;
        if (attachsize != null ? !attachsize.equals(that.attachsize) : that.attachsize != null)
            return false;
        return content != null ? content.equals(that.content) : that.content == null;

    }

    @Override
    public int hashCode() {
        int result = description != null ? description.hashCode() : 0;
        result = 31 * result + ressrcid;
        result = 31 * result + (ressrcname != null ? ressrcname.hashCode() : 0);
        result = 31 * result + (attach != null ? attach.hashCode() : 0);
        result = 31 * result + (attachsize != null ? attachsize.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        return result;
    }

    private int ressrcid;
    private String ressrcname;
    private String attach;
    private String attachsize;
    private String content;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getRessrcid() {
        return ressrcid;
    }

    public void setRessrcid(int ressrcid) {
        this.ressrcid = ressrcid;
    }

    public String getRessrcname() {
        return ressrcname;
    }

    public void setRessrcname(String ressrcname) {
        this.ressrcname = ressrcname;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public String getAttachsize() {
        return attachsize;
    }

    public void setAttachsize(String attachsize) {
        this.attachsize = attachsize;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
